package cn.edu.jmu.oelp.mapper;

import cn.edu.jmu.oelp.pojo.Article;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author huanghongbe
 */
@Repository
public interface ArticleMapper {


    /**
     * @param article 传入需要插入的文章
     * @return 正确插入返回true，并且将插入后的id装载进article里去
     */
    boolean addArticle(@Param("article") Article article);


    boolean delArticle(int articleId);


    boolean updateArticle(@Param("article")Article article);


    Article selArticleById(int articleId);
}
